@baseColor: #409EFF;
.widget-view {
    position: relative;
    width: 100%;
    height: inherit;
    &.is-hover {
        outline: 1px solid @baseColor;
        // z-index: 101;
        & > .widget-view-btn {
            display: block;
        }
    }
    &.free {
        width: auto;
        z-index: 90;
        cursor: move;
        // &.active {
        //     outline: 1px dashed @baseColor;
        // }
    }
    &.active {
        & > .widget-view-content {
            & > .border-wrap {
                display: block;
            }
        }
    }
    &.preview {
        cursor: default;
    }
    .widget-view-content {
        position: relative;
        height: inherit;
        .border-wrap {
            display: none;
        }
    }
}

.widget-view-btn {
    display: none;
    z-index: 100;
    .move-btn {
        position: absolute;
        left: 50%;
        top: 0;
        width: 55px;
        height: 18px;
        line-height: 9px;
        text-align: center;
        color: @baseColor;
        font-size: 16px;
        padding-top: 1px;
        margin-left: -28px;
        border-left: 1px solid @baseColor;
        border-right: 1px solid @baseColor;
        border-bottom: 1px solid @baseColor;
        border-radius: 0 0 3px 3px;
        background-color: #fff;
        box-sizing: border-box;
        cursor: move;
        z-index: 100;
    }
    .close-btn,
    .hide-btn {
        position: absolute;
        top: -1px;
        right: -1px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        font-size: 13px;
        border: 1px solid @baseColor;
        border-radius: 2px;
        background-color: #fff;
        color: @baseColor;
        box-sizing: border-box;
        cursor: pointer;
        text-align: center;
        z-index: 100;
    }
    .hide-btn {
        right: 25px;
    }
}